package com.local.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

@Entity
@Table(name = "local_finance_work")
public class LocalFinanceWork {
    @NotEmpty
    @Length(min=1,max=32)
    @Column(name = "uuid")
    private String uuid;

    @NotEmpty
    @Length(min=1,max=32)
    @Column(name = "work_transition_uuid")
    private String workTransitionUuid;

    //现金
    @NotNull
    @Column(name = "money")
    private Double money;

    //纸质优惠劵
    @NotNull
    @Column(name = "groupon_money")
    private Double grouponMoney;

    @NotNull
    @Column(name = "create_time")
    private Date createTime;

    @NotEmpty
    @Length(min=1,max=32)
    @Column(name = "create_user_uuid")
    private String createUserUuid;

    @NotEmpty
    @Length(min=1,max=16)
    @Column(name = "create_user_name")
    private String createUserName;

    @NotNull
    @Column(name = "status_")
    private Integer status;

    @Column(name = "reserve_price")
    private Double reservePrice;

    @Column(name = "attr1")
    private String attr1;

    @Column(name = "attr2")
    private String attr2;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid == null ? null : uuid.trim();
    }

    public String getWorkTransitionUuid() {
        return workTransitionUuid;
    }

    public void setWorkTransitionUuid(String workTransitionUuid) {
        this.workTransitionUuid = workTransitionUuid == null ? null : workTransitionUuid.trim();
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public Double getGrouponMoney() {
        return grouponMoney;
    }

    public void setGrouponMoney(Double grouponMoney) {
        this.grouponMoney = grouponMoney;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateUserUuid() {
        return createUserUuid;
    }

    public void setCreateUserUuid(String createUserUuid) {
        this.createUserUuid = createUserUuid == null ? null : createUserUuid.trim();
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName == null ? null : createUserName.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Double getReservePrice() {
        return reservePrice;
    }

    public void setReservePrice(Double reservePrice) {
        this.reservePrice = reservePrice;
    }

    public String getAttr1() {
        return attr1;
    }

    public void setAttr1(String attr1) {
        this.attr1 = attr1 == null ? null : attr1.trim();
    }

    public String getAttr2() {
        return attr2;
    }

    public void setAttr2(String attr2) {
        this.attr2 = attr2 == null ? null : attr2.trim();
    }
}